package com.my.dto;

import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement;
import lombok.Data;

import java.io.Serializable;

/**
 * @author sjx
 * @date 2025/2/11 13:21
 */
@Data
@JacksonXmlRootElement(localName = "xml")
public class MessageDTO implements Serializable {

    /**
     * 应用id
     */
    @JacksonXmlProperty(localName = "AgentID")
    private String agentId;

    /**
     * 消息id
     */
    @JacksonXmlProperty(localName = "MsgId")
    private String msgId;

    /**
     * 接收人
     */
    @JacksonXmlProperty(localName = "ToUserName")
    private String toUserName;

    /**
     * 发送人
     */
    @JacksonXmlProperty(localName = "FromUserName")
    private String fromUserName;

    /**
     * 发送时间
     */
    @JacksonXmlProperty(localName = "CreateTime")
    private String createTime;

    /**
     * 消息类型
     */
    @JacksonXmlProperty(localName = "MsgType")
    private String msgType;

    /**
     * 发送内容
     */
    @JacksonXmlProperty(localName = "Content")
    private String content;

}
